package kr.hkit.powerjava.chapter12;

class OuterClass {
	private String secret = "Time is money";
	
	public OuterClass(){
		InnerClass Odj = new InnerClass();
		Odj.print();
	}

	private class InnerClass {
		public InnerClass(){
			System.out.println("내부 클래스 생성자 입니다.");
		}
	public void print(){
		System.out.println(secret);
		}
	}

}

public class OuterClassTest {
	public static void main(String[] args) {
		new OuterClassTest();
	}
}